@extends('user.base.index')

@section('content')
    <div class="block-area" id="text-input">
                            <h3>@if (session('msg'))
                    {{ session('msg') }}
                @endif
            </h3> 
                <h3 class="block-title">友情链接</h3>

                <form action='/admin/links/{{ $links->id }}' method='post'>
                    <input type='hidden' name='_token' value='{{ csrf_token() }}'>
                    <input type='hidden' name='_method' value='PUT'>
                    <div class="row">

                        <div class="col-lg-2">
                           名称: <input name='name' type="text" class="form-control m-b-10"  value='{{ $links->name }}'>
                        </div>
                        <div class="col-lg-2">
                           链接: <input name='url' type="text" class="form-control m-b-10"  value='{{ $links->url }}'>
                        </div>
                        <div class='row'>
                            <div class="col-lg-12">
                                <input type='submit' class='btn' value='修改'>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </form>
    </div>
@stop

